package com.lab;
public class S {
	public String getValue (String plural, String from_which, String which) {
		
		Integer intermediate;
		String terminal;

		int x = Integer.parseInt(from_which);
		int y = Integer.parseInt(which);
		
		intermediate = Integer.parseInt(plural ,x);
		terminal = Integer.toString(intermediate, y);
		return terminal;
	}

}